const formRules = {
  address: [
    { type: 'string', required: true, message: '请输入宿舍地址', trigger: ['change', 'blur'] }
  ],
  // number: [
  //   { type:'number', required: true, message: '请输入可住人数', trigger: ['change','blur'] },
  //   { type:'number', min:1, message: '最小为1', trigger: ['change','blur'] },
  // ],
  rent: [
    { type: 'number', required: true, message: '请输入租金', trigger: ['change', 'blur'] },
    { type: 'number', min: 0, message: '租金必须不能为负值', trigger: ['change', 'blur'] }
  ]
}

export default formRules
